<?php
include_once ('../includes/utilidades.php');
session_start();
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$objeto = $_REQUEST['nombreObjeto'];

//print_r($_REQUEST);
$valores = array();
foreach ($_REQUEST as $key=>$value){
    if ($key!='nombreObjeto'){
        $valores[$key]=$value;
    }    
}

print_r($valores);
crearObjeto($objeto, $valores);
//print "<a href='" . $_SESSION['afterAdd'][$objeto] . "'> Pincha para seguir </a>";
header( 'Location: ' . $_SESSION['afterAdd'][$objeto] ) ;
?>

